//
// Created by livio on 2023/3/5.
//

#ifndef CPPDEMO_NET_H
#define CPPDEMO_NET_H

#ifdef WIN32
#include <WinSock2.h>
#include <WS2tcpip.h>

int socketpair(int family, int type, int protocol,SOCKET recv[2]);
#else
#include <socket.h>
#define SOCKET                  int
#define INVALID_SOCKET  (SOCKET)(~0)
#define SOCKET_ERROR            (-1)
#endif

#endif //CPPDEMO_NET_H
